package com.mijie.homi.listener;

import java.util.EventListener;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.mijie.homi.service.mood.MoodBroadcastService;

@Service
public class NotifyListener implements EventListener{

	@Autowired
	private IntegrationHandler integrationHandler ;
	@Autowired
	private MoodBroadcastService moodBroadcastService;
	
	public void pullNotify(int userId){
		integrationHandler.login(userId);
		moodBroadcastService.wakeupBroadcastWorker();
	}
}
